package com.maiji.cloud.mapper;

import com.maiji.cloud.entities.community.ComComment;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2019-07-12
 */

@Mapper
public interface ComCommentMapper extends BaseMapper<ComComment> {

    /**
     * 评论列表
     * @param msgId
     * @param page
     * @param size
     * @return
     */
    public List<ComComment> commentList(@Param("msgId") String msgId,@Param("userId")String userId, @Param("page") Integer page, @Param("size") Integer size);


    /**
     * 通过commentids 查询 评论列表
     * @param commentIds
     * @param userId
     * @return
     */
    public List<ComComment> findListByCommentids(@Param("commentIds")List<String> commentIds, @Param("userId")String userId);


}
